import i18n from '@/lang/index.js'
// 将router.meta.title, 用在面包屑、侧边导航、标签页导航
export function getGenerateTitle(title) {
  const hasKey = i18n.te('route.' + title)
  if (hasKey) {
    return i18n.t('route.' + title)
  }
  return title
}
